<template>
  <div id="app">
    <router-view></router-view>
    <!-- v-loading 就是一个自定义指令 -->
    <!-- <input type="text" name id v-focus />
    <div type="text" v-loading="loading" style="width:100px;heihgt:100px;background:red;"></div>-->
  </div>
</template>

<script>
export default {
  data() {
    return {
      loading: true
    }
  },
  created() {
    setTimeout(() => {
      this.loading = false;
    }, 2000)
  }
}
</script>

<style>
</style>